# Template file for 'gossa'
pkgname=gossa
version=0.2.2
revision=1
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
build_style=go
go_import_path=github.com/pldubouilh/gossa
short_desc="Fast and simple multimedia fileserver"
maintainer="privatewright <privateercp@protonmail.com>"
license="MIT"
homepage="https://github.com/pldubouilh/gossa"
_gossaui_commit="5ec0a804c908654225745ffc8e387859d337c846"
distfiles="https://github.com/pldubouilh/gossa/archive/refs/tags/v${version}.tar.gz https://github.com/pldubouilh/gossa-ui/archive/${_gossaui_commit}.tar.gz"
checksum="6511c504f4d02f223492b4e22d9d4416941d6b3e3986957baa9fc4e2568a8c88
 498a8556ab45956261d9ff4cad47b797fcb76b7766ade4bb787e1b24f14732c1"

post_extract() {
	rmdir "${build_wrksrc}/gossa-ui"
	mv "gossa-ui-${_gossaui_commit}" "${build_wrksrc}/gossa-ui"
}

pre_build() {
	export CGO_ENABLED=0
}

post_install() {
	vlicense LICENSE
}
